﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Keepo.Models
{
    public class LoginData
    {
        [Required(ErrorMessage = "יש להזין דוא\"ל")]
        [RegularExpression(@"\b[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}\b", ErrorMessage = "דוא\"ל לא תקין")]
        public string Email { get; set; }

        [Required(ErrorMessage = "יש להזין סיסמה")]
        public string Password { get; set; }

        public bool RememberMe { get; set; }
    }
}